
foo = [{"name":"zs","age":19},{"name":"ll","age":54},{"name":"wa","age":17},{"name":"df","age":23}]

a = sorted(foo, key = lambda x:x["age"], reverse = True)
print(a)

a = sorted(foo, key = lambda x:x["name"])
print(a)